﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestSimpleIntrestCalculator.aspx.cs" Inherits="CRMWeb.Pages.Test.TestSimpleIntrestCalculator" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
             <%--<asp:LinkButton ID="lbtnGoback" runat="server" PostBackUrl="~/Pages/AMSMainPage.aspx">Go Back AMS Main page </asp:LinkButton>--%>
            <asp:Label ID="Label1" runat="server" Text="Loan Amount:" Width="150px"></asp:Label>

            <asp:TextBox ID="txtLoanAmount" runat="server" Width="150px">5000</asp:TextBox>
            &nbsp;
            <br />
            <asp:Label ID="Label3" runat="server" Text="BetweenDays:" Width="150px"></asp:Label>
            <asp:TextBox ID="txtDaysBetween" runat="server" Width="150px">7</asp:TextBox>
            <asp:Label ID="Label7" runat="server" Text="Days" Width="150px"></asp:Label>

            <br />
            <asp:Label ID="Label4" runat="server" Text="Settle Date:" Width="150px"></asp:Label>

            <asp:TextBox ID="txtFirstDate" runat="server" Width="150px">2013-06-29</asp:TextBox>

            <br />
            <asp:Label ID="Label6" runat="server" Text="1st Payment Date:" Width="150px"></asp:Label>

            <asp:TextBox ID="txtFirstPaymentDate" runat="server" Width="150px">2013-7-7</asp:TextBox>

            <br />
            <asp:Label ID="Label8" runat="server" Text=" Interest(PA)：" Width="150px"></asp:Label>
            <asp:TextBox ID="txtInterestRatePA" runat="server" Width="150px">0.48</asp:TextBox>
            <br />
            <asp:Label ID="Label2" runat="server" Text="Term:" Width="150px" ForeColor="#FF3300"></asp:Label>

            <asp:TextBox ID="txtTerm" runat="server" Width="150px" ForeColor="Red">8</asp:TextBox>

            <br />
            <asp:Label ID="Label9" runat="server" Text="Repayment:" Width="150px" ForeColor="#FF3300"></asp:Label>

            <asp:TextBox ID="txtRepayment" runat="server" Width="150px" ForeColor="Red">250.59</asp:TextBox>
            <br />
            <br />
            <asp:Label ID="Label10" runat="server" Text="Payment schedule(simple interest):" Width="250px"></asp:Label>
            <asp:Button ID="Button4" runat="server" Text="Simple Interest (by Term)" OnClick="Button4_Click" Width="250px" />
            &nbsp;
            <asp:Button ID="Button3" runat="server" Text="Simple Interest (by Repayment)" OnClick="Button3_Click" Width="250px" />
            <br />

        </div>
        <p>
            &nbsp;
        </p>

        <asp:GridView ID="dvSchedule" runat="server">
        </asp:GridView>

    </form>
</body>
</html>
